using System;
using Microsoft.Scripting.Hosting;
using Microsoft.Scripting.Internal;
using Nua.Hosting;

namespace Nua
{
    internal sealed class NuaConsoleHost : ConsoleHost 
    {
        protected override void Initialize() 
        {
            base.Initialize();
            this.Options.LanguageProvider = ScriptEnvironment.GetEnvironment().GetLanguageProvider(typeof(NuaLanguageProvider));
        }
        
        [STAThread]
        static int Main(string[] args) 
        {
            return new NuaConsoleHost().Run(args);
        }
    }
}